package com.lijin.study.java.codec;

import java.text.SimpleDateFormat;
import java.util.Calendar;

public class CoderTest {

	public static void main(String[] args) {
		SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");
		Calendar c = Calendar.getInstance();
		
		for (int i = 0; i < 100; i ++) {
			c.add(Calendar.DATE, -1);
			System.out.println(format.format(c.getTime()) + c.get(Calendar.DAY_OF_MONTH) + c.get(Calendar.DAY_OF_YEAR));
		}
	}
	
}
